//
// Created by wangyg98 on 2025/5/7.
//

#include "scene.h"
#include "menu_scene.h"
#include "game_scene.h"

SceneManager::~SceneManager() {}

SceneManager& SceneManager::GetInstance(){
    static SceneManager instance;
    return instance;
}

void SceneManager::Initialize() {
    menu_scene = std::make_unique<MenuScene>();
    game_scene = std::make_unique<GameScene>();
}

void SceneManager::SwitchToGame(){
    current_scene = game_scene;
}

void SceneManager::SwitchToMenu() {
    current_scene = menu_scene;
}

Scene* SceneManager::GetCurrentScene(){
    return current_scene.get();
}